package cn.ynu.cmrs.model;

import java.io.Serializable;

/**
 * Comment information head<br>
 * 
 * <br>
 * <table>
 * <tr><td><b>field</b></td><td><b>description</b></td><td><b>
 * <tr><td>totalItems</td><td>Total amount of comments</td><td>
 * <tr><td>startPosition</td><td>Start position of comments</td><td>
 * <tr><td>amount</td><td>Amount of comments got this time</td><td>
 * </table>
 * 
 * @author starsfury
 *
 */
public class CommentHead implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 591754641462862298L;
	private int totalItems = 0;
	private int startPosition = 0; 
	private int amount = 0; 

	public CommentHead() {
		super();
		// TODO Auto-generated constructor stub
	}

	public CommentHead(int totalItems, int startPosition, int amount) {
		super();
		this.totalItems = totalItems;
		this.startPosition = startPosition;
		this.amount = amount;
	}

	public int getTotalItems() {
		return totalItems;
	}

	public void setTotalItems(int totalItems) {
		this.totalItems = totalItems;
	}

	public int getStartPosition() {
		return startPosition;
	}

	public void setStartPosition(int startPosition) {
		this.startPosition = startPosition;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	@Override
	public String toString() {
		return "CommentHead [totalItems=" + totalItems + ", startPosition="
				+ startPosition + ", amount=" + amount + "]";
	}
	
}
